package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.dto.InvInventoryWorkOrderDTO;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("门店库存盘点工单实体")
@TableName("inv_inventory_work_order")
public class InvInventoryWorkOrder extends AbdulBaseEntity {
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("仓库ID")
    private Long warehouseId;

    @ApiModelProperty("盘点单号")
    private String inventoryNumber;

    @ApiModelProperty("盘点员工")
    private String stocktakingName;

    @ApiModelProperty("状态（1-未盘点 2-已盘点）")
    private Integer isStatus;

    @ApiModelProperty("盘点时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date stocktakingTime;

    @TableField(exist = false)
    @ApiModelProperty("盘点明细")
    List<InvInventoryWorkOrderDTO> inventoryWorkOrderDTOList;

    @ApiModelProperty("仓库名称")
    @TableField(exist = false)
    private String warehouseIdDesc;
}
